from PyQt5.QtWidgets import QApplication, QListWidget
from pgtools.plugins.client.qtwidget_helper import TListWidget

data = ['1队1班', '1队2班', '2队1班',  '2队2班']
app = QApplication([])
tlist = QListWidget()
t_tlist = TListWidget(tlist, data)
t_tlist.append('3队1班')
print(t_tlist.get_data())  # 打印所有数据
tlist.show()
app.exec_()
